package com.ljx.recruitment.interview.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.recruitment.interview.domain.dto.DashboardDeliverTrendDateDto;
import com.ljx.recruitment.interview.domain.entity.Deliver;
import com.ljx.recruitment.interview.domain.vo.req.DeliverPageReq;
import com.ljx.recruitment.interview.domain.vo.resp.DeliverResp;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface DeliverMapper extends BaseMapper<Deliver> {
    List<DeliverResp> getPage(DeliverPageReq req);

    Integer getPageTotal(DeliverPageReq req);

    List<Deliver> getTenantDeliver(Long tenantId);

    List<DashboardDeliverTrendDateDto> getCountGroupByDate(@Param("tenantId") Long tenantId,
                                                           @Param("list") List<Date> dates);
}
